import { Singleton } from "./Singleton";

export class DataMgr extends Singleton {
    private game_data: any
    private server_time_delay: number;
    constructor() {
        super();
    }

    public get gameData() {
        return this.game_data;
    }

    public set gameData(v: any) {
        this.game_data = v;
    }

    set serverTimeDelay(v: number) {
        this.server_time_delay = v;
    }

    get serverTimeDelay() {
        return this.server_time_delay;
    }

    get serverTime() {
        return this.server_time_delay + Laya.Browser.now();
    }

}